package com.company.project.service;

import com.company.project.model.Authority;
import com.company.project.core.Service;
import com.company.project.model.RoleAuthority;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
public interface AuthorityService extends Service<Authority> {
    //后台功能导航
    List<Authority> selectAction(String name, String pwd);

    /**
     * 删除权限
     */
    Boolean deleteAuthority(Integer rid, Integer parentid);
    /**
     * 删除后更新
     * @param roleAuthority
     * @return
     */
    Boolean upAuthority(RoleAuthority roleAuthority);

    /**
     * 添加权限
     */
    Boolean addAuthority(RoleAuthority roleAuthority);
    /**
     * 查询添加的权限
     * @return
     */
    List<Authority> selectAuthorityAll();

    /**
     * 查询所有权限
     */
    List<Authority> Function();


    /**
     * 查询二级菜单
     * @param id
     * @return
     */
    List Submenu(String id);
}
